package com.chinaway.mobile.model;

import java.io.Serializable;
import java.util.Date;

public class Sim implements Serializable {
	private static final long serialVersionUID = 1380277770935191754L;
	
	private int id;
	private String mobile;
	private String gpsno;
	private String clientid;
	
	private Double balance;
	private Double balance1;
	
	private Date updatetime;
	private Date updatetime1;
	
	private Date createtime;
	private String password;
	private String provcode;
	private int status;
	private String validtime;
	private String remarks;
	
	public Sim(){};
	
	public Sim(Account account){
		this.mobile = account.getMobile();
		if(account.getBalance()!=null){
			this.balance = Double.valueOf(account.getBalance());
		}
		this.remarks =account.toString()+ account.getMessage();
		if(balance!=null && balance<5){
			this.status = 2;
		}
	};
	
	
	public int getId() {
		return id;
	}
	public String getMobile() {
		return mobile;
	}
	public String getGpsno() {
		return gpsno;
	}
	public String getClientid() {
		return clientid;
	}
	public Double getBalance() {
		return balance;
	}
	public Date getUpdatetime() {
		return updatetime;
	}
	public Double getBalance1() {
		return balance1;
	}
	public Date getUpdatetime1() {
		return updatetime1;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public String getPassword() {
		return password;
	}
	public String getProvcode() {
		return provcode;
	}
	public int getStatus() {
		return status;
	}
	public String getValidtime() {
		return validtime;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setId(int id) {
		this.id = id;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public void setGpsno(String gpsno) {
		this.gpsno = gpsno;
	}
	public void setClientid(String clientid) {
		this.clientid = clientid;
	}
	public void setBalance(Double balance) {
		this.balance = balance;
	}
	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}
	public void setBalance1(Double balance1) {
		this.balance1 = balance1;
	}
	public void setUpdatetime1(Date updatetime1) {
		this.updatetime1 = updatetime1;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public void setProvcode(String provcode) {
		this.provcode = provcode;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public void setValidtime(String validtime) {
		this.validtime = validtime;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
}
